package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.OrderView
import hlhj.fhp.checkpoint.javaBean.YearDetailBean
import hlhj.fhp.checkpoint.module.OrderDetailModule

/**
 * Created by Never Fear   on 2018\11\12 0012.
Never More....
 */
class OrderDetailPresenter :BasePresenter<OrderDetailModule,OrderView>(), OrderView {
    override fun createModule() {
        module=OrderDetailModule()
        module.listener=this
    }

    fun getDetail(id:Int,c:Context){
        module?.getDetail(id, c)
    }
    override fun setDetail(yearDetailBean: YearDetailBean) {
        view?.setDetail(yearDetailBean)
    }
}